package com.bwf.lgqingdan;

import com.bwf.lgqingdan.entity.ResponseDailyTips;
import com.bwf.lgqingdan.entity.ThingsBean;
import com.facebook.drawee.backends.pipeline.Fresco;

/**
 * Created by LG on 2016/10/19.
 * Tips:
 */

public class QingdanApplication extends HotFixApp{
    public static QingdanApplication instance;
    public static ThingsBean thingsBean;
    public static ResponseDailyTips dailyTips;
    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        Fresco.initialize(this);
        //搜集本地tbs内核信息并上报服务器，服务器返回结果决定使用哪个内核。
        //TbsDownloader.needDownload(getApplicationContext(), false);
    }

    /**
     * 清空图片缓存
     */
    public void clearDiskImgCaches(){
        Fresco.getImagePipeline().clearDiskCaches();
    }
}
